import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/stock_out_order_detail_child_entity.g.dart';
import 'dart:convert';
import 'package:library_base/entities/stock_out_order_goods_detail_entity.dart';



@JsonSerializable()
class StockOutOrderDetailChildEntity{

  late String goodsCode;
  late String goodsName;
  late String unit;
  late double planOutCount;
  late double planOutWeight;
  late double actualOutCount;
  late double actualOutWeight;
  late bool singleEntry;
  late List<StockOutOrderGoodsDetailEntity> goodsDetails;

  StockOutOrderDetailChildEntity();

  factory StockOutOrderDetailChildEntity.fromJson(Map<String, dynamic> json) => $StockOutOrderDetailChildEntityFromJson(json);

  Map<String, dynamic> toJson() => $StockOutOrderDetailChildEntityToJson(this);

  @override
  String toString() => json.encode(this);

}
